{% extends "contifyuser/base_2col.html" %}
{% block content %}

    <div id="loginDivId" style="background-color: #666699; min-height: 50px; min-width: 40px; position: absolute; top: 50px; right: 100px; display:none;">
    {% if form.errors %}
        <p>Your username and password didn't match. Please try again.</p>
        {% endif %}
        
        <form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
        <div style="margin-top: 10px;margin-left: 5px; margin-right: 20px;">
            <div>{{ form.username.label_tag }}</div>
            <div>{{ form.username }}</div>
        </div>
        <div style="margin-left: 5px; margin-right: 20px;">
            <div >{{ form.password.label_tag }}</div>
            <div>{{ form.password }}</div>
        </div>
        
        <div style="margin-left: 60px; margin-bottom: 15px;">
            <input type="submit" value="login" />
            <input type="hidden" name="next" value="{{ next }}" />
        </div>
        </form>
    </div>
{% endblock %}

